public class TestIOC {
    public static void main(String[] args) {
        Weapon weapon = new Gun();
        Hero hero = new Hero();
        hero.getName("龙哥");
    }
}
